package designPattern.抽象工厂模式;

/**
 * @author: li chao
 * @Desc:
 * @create: 2025-11-12 16:31
 **/
public class FactoryProducer {
    public static AbstractFactory getFactory(String choice){
        if(choice.equalsIgnoreCase("SHAPE")){
            return new ShapeFactory();
        } else if(choice.equalsIgnoreCase("COLOR")){
            return new ColorFactory();
        }
        return null;
    }
}